{extend name="public:layout" /}
{block name="title"}请假申请{/block}
{block name="head"}
	<style>
		body{font-family: "微软雅黑";}
		.wx_tabs a {
			width: 25%;
		}
		
	</style>
{/block}
{block name="body"}
	<!--司机请假申请-->
	<div class="dz_wrap">
	    <div class="tabs wx_tabs">
	        <a href="/system/op/index.html?mid=12&tpl=sj_leave_notes&leave_status=0" {eq name="Request.param.leave_status" value="0"}class="active"{/eq}>待审批</a>
	        <a href="/system/op/index.html?mid=12&tpl=sj_leave_notes&leave_status=2" {eq name="Request.param.leave_status" value="2"}class="active"{/eq}>已驳回</a>
			<a href="/system/op/index.html?mid=12&tpl=sj_leave_notes&leave_status=1" {eq name="Request.param.leave_status" value="1"}class="active"{/eq}>已审批</a>
	        <a href="/system/op/index.html?mid=12&tpl=sj_leave_notes&leave_status=3" {eq name="Request.param.leave_status" value="3"}class="active"{/eq}>已销假</a>
	    </div>
	    <div class="swiper-container mescroll" id="mescroll">
			<div id="content-slide"></div>
	   </div>
	</div>
	<!--返回首页-->
	<div class="back_index">
		<a href="/system">
			<img class="back_img" src="/public/mobile/static/images/back1.png" />
		</a>
	</div>
<div style="position:fixed;bottom:0;left:0;width:100%;">
	<a href="/system/op/add.html?mid=12&tpl=sj_leave_add" class="weui-btn weui-btn_primary" style="border-radius:0;">请假申请</a>
</div>

<script type="text/html" id="test">
	<div class="swiper-slide">
		<div class="content-slide">
			<div class="weui-cells my_weui_cells">
				{{ each rows }}
				<a class="" href="/system/op/edit.html?mid=12&aid={{ $value.aid }}&tpl=sj_leave_cc">
					<div class="mz_flex_box">
						<div class="left">
							<img src="/public/mobile/static/images/user.jpg" />
						</div>
						<div class="center">
							<p class="title">请假申请</p>
							<p class="time">开始时间：{{ $value.leave_start_time }}</p>
							<p class="time">结束时间：{{ $value.leave_end_time }}</p>
							<P class="status">{{ $value.leave_status_text }}</P>
						</div>
						<div class="right">
							{{ $value.new_time }}
						</div>
					</div>
				</a>
				{{ /each }}
			</div>
		</div>
	</div>
</script>
{/block}
{block name="script"}
	<script>
        $(function () {
            var leave_status="{$Request.param.leave_status}";
            initPage('content-slide','/system/logic.query/record.html?mid=12',{leave_status:leave_status},'test');
        });
	</script>
{/block}